package com.mazha.rabbitmq.pojo.vo;

import com.mazha.rabbitmq.common.validated.Register;
import com.mazha.rabbitmq.common.validated.UserList;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author leizi
 * @date 2023/12/08
 */
@Data
public class UserRegisterVO {

    /**
     * 用户唯一编码
     */
    @NotNull(message = "用户注册id不能为空", groups = {UserList.class})
    private Long userId;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空", groups = {Register.class})
    private String name;

    /**
     * 用户简介
     */
    private String profile;

}
